Copyright: SimpleFileDrop Control ® 1998 Crazy Rides
Citation: SimpleFileDrop Control ® 1998 Crazy Rides


SimpleFileDrop Control

Properties     Methods     Events     Registration Notes

Control Name:	SimpleFileDrop

File Name:	CR_SFD32.OCX

Help File:	CR_SFD32.HLP

Error Log: 	CR_SFD32.LOG

ActiveX Compatibility: 	VB 4.0 (32-bit), 5.0 and 6.0

ActiveX Built With: 	Microsoft Visual Basic version 6 SP1

ActiveX-Required DLLs: 	VB 6.0 Run-Time DLLs

MSVBVM60.DLL

CanGetFocus:	False

InvisibleAtRuntime:	True

Windowless:	True

Description

SimpleFileDrop provides notification when the user drops a file, or group of files, from the Windows File Manager or Windows Explorer onto the form. SimpleFileDrop is Light ActiveX Control, which means it uses very little system resources.

Remarks

Before you can use a SimpleFileDrop control in your application, you must add the CR_SFD32.OCX file to your project. If you use the control in most of your VB projects, you may want to add it to VB's Autoload file.

To distribute applications you create with the SimpleFileDrop control, you must install and register it on the user's computer. The Setup Wizard provided with Visual Basic provides tools to help you do that. Please refer to the Visual Basic manual for details.


Properties

DebugMode Property

Enabled Property

FileCount Property

FileName Property

InClient Property

Version Property

x and y Properties


Events

DropFiles Event


Example

Private Sub sfdDemo_DropFiles()

    Dim lCount As Long

    'Reset the listbox

    lstDroppedFiles.Clear

    'Show filecount

    lblDemo.Caption = CStr(sfdDemo.FileCount) & " File(s) Dropped at point "

    '...and file drop position

    lblDemo.Caption = lblDemo.Caption & sfdDemo.x & ", " & sfdDemo.y

    '...and weather it is inside the client area

    lblDemo.Caption = lblDemo.Caption & " and InClient is " & IIf(sfdDemo.InClient, "True", "False")

    'Retrieve each file and add to the listbox

    For lCount = 0 To (sfdDemo.FileCount - 1)

        lstDroppedFiles.AddItem sfdDemo.FileName(lCount)

    Next

End Sub


DebugMode Property

Example     Applies to

Returns/sets a value that determines whether an object can display and log error events.

Syntax

[form!]SimpleFileDrop.DebugMode[ = {True | False} ]

Data Type

Boolean

Default Value

False


DropFiles Event

Example     Applies to

Occurs when the user drops files onto the form.

Syntax

Private Sub SimpleFileDrop_DropFiles()

Remarks

Only occurs if the Enabled property is set to True (default) and only fires for the form the control is on. If there is more than one form that needs file drag-and-drop events, you must place a control on each one.


Enabled Property

Example     Applies to

Returns/sets a value that determines whether an object can respond to user-generated events.

Syntax

[form!]SimpleFileDrop.Enabled[ = {True | False} ]

Data Type

Boolean

Default Value

True


FileCount Property

Example     Applies to

Specifies the number of files dropped onto the form.

Syntax

value As Long = [form!]SimpleFileDrop.FileCount

Data Type

Long

Default Value

0

Remarks

Only valid after a DropFiles event has occurred. Read-only and only available at run-time.

See Also

DropFiles Event


FileName Property

Example     Applies to

Specifies the name(s) of the file(s) dropped onto the form.

Syntax

value As String = [form!]SimpleFileDrop.FileName(Index As Long)

Data Type

String

Default Value

""

Remarks

Only valid after a DropFiles event has occurred. Read-only and only available at run-time.

See Also

DropFiles Event

FileCount Property


InClient Property

Example     Applies to

Specifies whether the files were dropped in the form's client or non-client area.

Syntax

value As Integer = [form!]SimpleFileDrop.InClient

Data Type

Boolean

Default Value

False

Remarks

Indicates whether the file(s) were dropped in the client area (the main window) of the form or in the non-client area (the menu bar, title bar, border, or any part of the window that is not the main portion).

Only valid after a DropFiles event has occurred. Read-only and only available at run-time.

See Also

DropFiles Event

x and y Properties


Version Property

Example     Applies to

Returns the version of the control.

Syntax

value As String = [form!]SimpleFileDrop.Version

Data Type

String

Default Value

control's version number

Remarks

Read only.


x and y Properties

Example     Applies to

Specifies where the file(s) were dropped in the form.

Syntax

value As Long = [form!]SimpleFileDrop.x

value As Long = [form!]SimpleFileDrop.y

Data Type

Long

Default Value

0

Remarks

Returns the location in pixels in relation to the upper left corner.

Only valid after a DropFiles event has occurred. Read-only and only available at run-time.

See Also

DropFiles Event

InClient Property


Registration Notes

Register Now!      Registration Form

Support & Registration

All input, comments, questions, and bug reports are welcome.

Contacting Crazy Rides

Phone:	905-302-3664

E-mail:	gkichok@tcn.net

Website:	http://gkichok.tcn.net/

Address:	Crazy Rides

c/o Gerry Kichok

60 Bristol Rd E, #221

Mississauga, Ontario.

CANADA     L4Z 3K8

Registration Notes

Thank you for registering, your support is very important to me. Please don't hesitate to contact me if you have any questions or comments.

To update this program download the newest version from the Internet via the World Wide Web.

The installation program is a Windows 32-bit Self-Installing Executable file containing all the files used for the full version of this program.

File Inventory

Files	Description

CR_SFD32.OCX	© Crazy Rides Custom Control.

CR_SFD32.HLP	© Crazy Rides Custom Control Help file.

UNWISE.EXE	© WISE Uninstall program.

SimpleFileDrop.VBP	© Crazy Rides demo project in Visual Basic 5.

SimpleFileDrop.FRM	© Crazy Rides demo form in Visual Basic 5.

Documentation

Documentation is provided solely through the Help file.  Registered users will be notified by E-mail when the NEW versions are released so they can receive the latest updates. All updates will be free of charge.

Rights & responsibilities

Upon receipt you assume all rights and responsibilities for it's use and distribution. Only the ZIP file you received in it's original condition is freely distributable. Distribution of files without permission from Crazy Rides is protected by copyright.

Disclaimer

Crazy Rides disclaims all warranties, either express or implied, including, but not limited to any implied warranties of merchantability and fitness for a particular purpose, with respect to this product and the accuracy of the data or calculations.

Should the product prove defective the purchaser solely assumes the entire risk of paying the entire cost of all necessary servicing, repair or correction and any incidental or consequential damages. In no event will Crazy Rides be liable for any damages whatsoever (including without limitation damages for loss of business profits, business interruption, loss of business information and the like) arising out of the failure of this product or the inability to use this product even if Crazy Rides has been advised of the possibility of such damages.

Use of this product for any period of time constitutes your acceptance of this agreement and subjects you to its contents.

Bugs/Problems

If a bug in this product is suspected please outline the situation clearly and the sequence of events which will reproduce the problem. Send this information to Crazy Rides and we will attempt to correct it.  Alerting us to bugs will allow the application to be kept as error free as possible.


Register Now!
Register Now!: the easiest way to register software

by Universal Commerce, Inc.

Register Now!'s web site, http://www.regnow.com. REGNOW is an easy, secure way to register software online and pay with your major credit-card.

Universal Commerce, Inc.

ATTN Orders

PO Box 1816

Issaquah, WA  98027

USA

A reminder about mail orders:

Customers should make checks payable to Universal Commerce, Inc., including the product's ID on the "memo" of the check.  All order information except credit card information should be included in the order

Phone

Toll Free:	1-877-353-7297

International:	425-392-2294

Fax

Toll Free:	1-888-353-7276

International:	425-392-0223

Product Information

Author:	Gerry Kichok

Company:	Crazy Rides

Program Title:	SimpleFileDrop

Product ID:	1555-4

Fee (US$):	19.95

Webpage:	https://www.regnow.com/softsell/nph-softsell.cgi?item=1555-4


Registration Form

 SimpleFileDrop Control

Please print this page then enter the following information for registration:

Name:	______________________________________________________

Company:	______________________________________________________

Street Address:	______________________________________________________

City:	______________________________________________________

State/Province:	______________________________________________________

Country:	______________________________________________________

Postal Code :	______________________________________________________

Phone:	______________________________________________________

FAX:	______________________________________________________

E-mail Address:	______________________________________________________

Registration choice:

Product ID:	1555-4

License(s)	_______	x US$19.95	____________

Registration Notification via:

E-mail 	_______	     NO Charge

Regular Mail	_______	x US$3 S&H	____________

Disk	_______	3½"

_______	CD-R

 	____________

TOTAL Registration FEE enclosed:	US$	____________

Please include a check or money order payable to Crazy Rides. Send cash at your own risk.

 Comments:	______________________________________________________

______________________________________________________

______________________________________________________

Mail to :	Crazy Rides

c/o Gerry Kichok

60 Bristol Rd E, #221

Mississauga, Ontario.

CANADA     L4Z 3K8